﻿using SqlSugar;
using static DataModels.Enums.GeneralEnum;

namespace DataModels.Entities.Community
{
    [SugarTable]
    public class HomeLetters
    {
        public Guid UUID { get; set; } = Guid.NewGuid();

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 首图
        /// </summary>
        public string Image { get; set; }

        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 是否草稿
        /// </summary>
        public Status Status { get; set; }

        /// <summary>
        /// 所属项目
        /// </summary>
        public Guid ProjectUUID { get; set; }
    }


    [SugarTable("homeletters_sub")]
    public class HomeLettersSub
    {
        public Guid UUID { get; set; }
        public Guid ParentUUID { get; set; }
        public string Title { get; set; }
        public string Content { get; set; }
        public string AttachmentPath { get; set; }

        public DateTime CreateTime { get; set; } = DateTime.Now;
    }
}
